/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cgi.ndk.wf.service;

import com.cgi.ndk.wf.bp.BPController;
import com.cgi.ndk.wf.generated.endToEndProcessOnly.EndToEndProcessOnlyResponse;
import com.cgi.ndk.wf.generated.endToEndTest.EndToEndTestResponse;
import com.cgi.ndk.wf.generated.humanTaskService.CompleteResponse;
import com.cgi.ndk.wf.generated.humanTaskService.LoadTaskResponse;
import com.cgi.ndk.wf.generated.humanTaskService.SimpleQueryResponse;
import com.cgi.ndk.wf.generated.humanTaskService.StartResponse;
import com.cgi.ndk.wf.generated.instanceManagementService.InstanceInfoType;
import com.cgi.ndk.wf.generated.instanceManagementService.PaginatedInstanceList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author kovalcikm
 */
@Service
public class TaskService {

    @Autowired
    private BPController bpController;

    public PaginatedInstanceList getInstances() {
        return bpController.getInstances();
    }

    public InstanceInfoType getAutomaticTask(long id) {
        return bpController.getAutomaticTask(id);
    }

    public SimpleQueryResponse getHumanTasks() {
        return bpController.getHumanTasks();
    }

    public StartResponse reserve(String id) {
        return bpController.reserve(id);
    }

    public LoadTaskResponse load(String id) {
        return bpController.load(id);
    }

    public CompleteResponse complete(String id) {
        return bpController.complete(id);
    }

    public EndToEndProcessOnlyResponse endToEndProcessOnly(String id) {
        return bpController.endToEndProcessOnly(id);
    }

    public EndToEndTestResponse endToEndTest(String id) {
        return bpController.endToEndTest(id);
    }

}
